package com.apes.fn.scm.crossCompany.transfer.repository;

import com.apes.fn.scm.crossCompany.transfer.model.CrossCompanyTransferItemNew;
import com.apes.framework.jpa.repository.CustomRepository;
import org.mvel2.util.Make;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface CrossCompanyTransferItemNewRepository extends CustomRepository<CrossCompanyTransferItemNew, String> {

    @Query(value = "SELECT T FROM CrossCompanyTransferItemNew T WHERE crossCompanyTransfer.id = ?1 order by product.name asc ")
    List<CrossCompanyTransferItemNew> findTransferId(String transferId);
}
